#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QSystemTrayIcon>
#include <windows.h>

//#ifdef Q_OS_WIN
//#pragma comment(lib, "user32.lib")
//#include <qt_windows.h>
//#endif

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT
public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();
    void setSystemMenu();

public slots:
    void systemExit(bool b);
    void init();
    void showAction(bool b);
    void hideAction(bool b);

private:
    Ui::Widget *ui;
    QSystemTrayIcon *trayIcon;

};

#endif // WIDGET_H
